package com.jp.code.filter;

import com.jp.code.pojo.User;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;

public class StreamTest {
    public static void main(String[] args) {
        List<User> userList = new ArrayList<>();


        Set<User> userSet = userList.stream().filter(user -> user.getAge() > 90).collect(Collectors.toSet());


    }
}
